home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-07-31 | 2.5 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Sat Jul 31 14:51:25 1993, modified Sat Jul 31 14:51:25 1993, creator 'MMCC', type ASCII, 1893 bytes "ScrollDemo.c" , at 0x7e5 448 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 53 63 72 6f 6c 6c | 44 65 6d 6f 2e 63 00 00 |..Scroll|Demo.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 07 65 00 | 00 01 c0 a8 80 6f ad a8 |......e.|.....o..|
|00000060| 80 6f ad 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.o......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bc af 00 00 |........|........|
|00000080| 2f 2a 20 53 63 72 6f 6c | 6c 44 65 6d 6f 2e 63 0d |/* Scrol|lDemo.c.|
|00000090| 53 63 72 6f 6c 6c 44 65 | 6d 6f 20 77 6f 72 6b 73 |ScrollDe|mo works|
|000000a0| 20 4f 4e 4c 59 20 6f 6e | 20 74 68 65 20 6f 72 69 | ONLY on| the ori|
|000000b0| 67 69 6e 61 6c 20 41 70 | 70 6c 65 20 63 6f 6c 6f |ginal Ap|ple colo|
|000000c0| 72 20 76 69 64 65 6f 20 | 63 61 72 64 73 2c 20 77 |r video |cards, w|
|000000d0| 68 69 63 68 20 61 72 65 | 20 6e 6f 0d 6c 6f 6e 67 |hich are| no.long|
|000000e0| 65 72 20 73 6f 6c 64 20 | 62 79 20 41 70 70 6c 65 |er sold |by Apple|
|000000f0| 20 62 75 74 20 61 72 65 | 20 61 76 61 69 6c 61 62 | but are| availab|
|00000100| 6c 65 20 66 6f 72 20 24 | 39 30 20 66 72 6f 6d 20 |le for $|90 from |
|00000110| 53 68 72 65 76 65 20 53 | 79 73 74 65 6d 73 0d 28 |Shreve S|ystems.(|
|00000120| 38 30 30 2d 32 32 37 2d | 33 39 37 31 29 2e 20 54 |800-227-|3971). T|
|00000130| 68 65 20 73 75 70 70 6f | 72 74 65 64 20 76 69 64 |he suppo|rted vid|
|00000140| 65 6f 20 63 61 72 64 73 | 20 61 72 65 20 63 61 6c |eo cards| are cal|
|00000150| 6c 65 64 20 22 54 6f 62 | 79 20 66 72 61 6d 65 20 |led "Tob|y frame |
|00000160| 62 75 66 66 65 72 20 63 | 61 72 64 22 20 6f 72 0d |buffer c|ard" or.|
|00000170| 22 4d 61 63 20 49 49 20 | 48 69 67 68 2d 52 65 73 |"Mac II |High-Res|
|00000180| 6f 6c 75 74 69 6f 6e 20 | 56 69 64 65 6f 20 43 61 |olution |Video Ca|
|00000190| 72 64 22 2e 20 20 53 63 | 72 6f 6c 6c 44 65 6d 6f |rd". Sc|rollDemo|
|000001a0| 20 77 69 6c 6c 20 72 65 | 66 75 73 65 20 74 6f 20 | will re|fuse to |
|000001b0| 72 75 6e 20 6f 6e 20 61 | 6e 79 20 6f 74 68 65 72 |run on a|ny other|
|000001c0| 0d 76 69 64 65 6f 20 63 | 61 72 64 2e 20 54 68 65 |.video c|ard. The|
|000001d0| 20 73 63 72 6f 6c 6c 20 | 73 70 65 65 64 20 6e 61 | scroll |speed na|
|000001e0| 74 75 72 61 6c 6c 79 20 | 64 65 70 65 6e 64 73 20 |turally |depends |
|000001f0| 6f 6e 20 74 68 65 20 76 | 69 64 65 6f 20 64 65 70 |on the v|ideo dep|
|00000200| 74 68 2c 20 69 2e 65 2e | 0d 62 69 74 73 2f 70 69 |th, i.e.|.bits/pi|
|00000210| 78 65 6c 2e 0d 31 30 2f | 32 39 2f 38 38 09 64 67 |xel..10/|29/88.dg|
|00000220| 70 09 77 72 6f 74 65 20 | 69 74 0d 31 30 2f 31 37 |p.wrote |it.10/17|
|00000230| 2f 39 30 09 64 67 70 09 | 72 65 6d 6f 76 65 64 20 |/90.dgp.|removed |
|00000240| 75 6e 75 73 65 64 20 76 | 61 72 69 61 62 6c 65 73 |unused v|ariables|
|00000250| 0d 32 2f 31 36 2f 39 31 | 09 09 64 67 70 09 61 64 |.2/16/91|..dgp.ad|
|00000260| 64 65 64 20 63 68 65 63 | 6b 20 66 6f 72 20 66 70 |ded chec|k for fp|
|00000270| 75 20 61 6e 64 20 63 6f | 6c 6f 72 20 71 75 69 63 |u and co|lor quic|
|00000280| 6b 64 72 61 77 0d 38 2f | 32 34 2f 39 31 09 64 67 |kdraw.8/|24/91.dg|
|00000290| 70 09 4d 61 64 65 20 63 | 6f 6d 70 61 74 69 62 6c |p.Made c|ompatibl|
|000002a0| 65 20 77 69 74 68 20 54 | 48 49 4e 4b 20 43 20 35 |e with T|HINK C 5|
|000002b0| 2e 30 2e 0d 33 2f 31 30 | 2f 39 32 09 64 67 70 09 |.0..3/10|/92.dgp.|
|000002c0| 69 6e 63 6c 75 64 65 20 | 6d 63 36 38 38 38 31 2e |include |mc68881.|
|000002d0| 68 0d 38 2f 32 37 2f 39 | 32 09 64 67 70 09 72 65 |h.8/27/9|2.dgp.re|
|000002e0| 70 6c 61 63 65 20 53 79 | 73 45 6e 76 69 72 6f 6e |place Sy|sEnviron|
|000002f0| 73 28 29 20 62 79 20 47 | 65 73 74 61 6c 74 28 29 |s() by G|estalt()|
|00000300| 0d 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 56 69 |.*/.#inc|lude "Vi|
|00000310| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 22 0d 0d 76 |deoToolb|ox.h"..v|
|00000320| 6f 69 64 20 53 63 72 6f | 6c 6c 44 65 6d 6f 28 76 |oid Scro|llDemo(v|
|00000330| 6f 69 64 29 3b 0d 0d 76 | 6f 69 64 20 6d 61 69 6e |oid);..v|oid main|
|00000340| 28 76 6f 69 64 29 0d 7b | 0d 09 52 65 71 75 69 72 |(void).{|..Requir|
|00000350| 65 28 67 65 73 74 61 6c | 74 38 42 69 74 51 44 29 |e(gestal|t8BitQD)|
|00000360| 3b 0d 09 53 63 72 6f 6c | 6c 44 65 6d 6f 28 29 3b |;..Scrol|lDemo();|
|00000370| 0d 7d 0d 0d 76 6f 69 64 | 20 53 63 72 6f 6c 6c 44 |.}..void| ScrollD|
|00000380| 65 6d 6f 28 76 6f 69 64 | 29 0d 7b 0d 09 6c 6f 6e |emo(void|).{..lon|
|00000390| 67 20 69 6e 74 20 78 2c | 79 3b 0d 09 69 6e 74 20 |g int x,|y;..int |
|000003a0| 62 69 74 73 3d 38 3b 0d | 09 69 6e 74 20 73 6c 6f |bits=8;.|.int slo|
|000003b0| 74 3b 0d 09 47 44 48 61 | 6e 64 6c 65 20 64 65 76 |t;..GDHa|ndle dev|
|000003c0| 69 63 65 3b 0d 0d 09 70 | 72 69 6e 74 66 28 22 57 |ice;...p|rintf("W|
|000003d0| 65 6c 63 6f 6d 65 20 74 | 6f 20 53 63 72 6f 6c 6c |elcome t|o Scroll|
|000003e0| 44 65 6d 6f 2e 5c 6e 22 | 29 3b 0d 09 64 65 76 69 |Demo.\n"|);..devi|
|000003f0| 63 65 20 3d 20 47 65 74 | 44 65 76 69 63 65 4c 69 |ce = Get|DeviceLi|
|00000400| 73 74 28 29 3b 0d 09 77 | 68 69 6c 65 28 64 65 76 |st();..w|hile(dev|
|00000410| 69 63 65 21 3d 4e 55 4c | 4c 29 7b 0d 09 09 69 66 |ice!=NUL|L){...if|
|00000420| 28 54 65 73 74 44 65 76 | 69 63 65 41 74 74 72 69 |(TestDev|iceAttri|
|00000430| 62 75 74 65 28 64 65 76 | 69 63 65 2c 73 63 72 65 |bute(dev|ice,scre|
|00000440| 65 6e 44 65 76 69 63 65 | 29 20 26 26 0d 09 09 09 |enDevice|) &&....|
|00000450| 45 71 75 61 6c 53 74 72 | 69 6e 67 28 22 5c 70 2e |EqualStr|ing("\p.|
|00000460| 44 69 73 70 6c 61 79 5f | 56 69 64 65 6f 5f 41 70 |Display_|Video_Ap|
|00000470| 70 6c 65 5f 54 46 42 22 | 2c 47 44 4e 61 6d 65 28 |ple_TFB"|,GDName(|
|00000480| 64 65 76 69 63 65 29 2c | 31 2c 31 29 29 62 72 65 |device),|1,1))bre|
|00000490| 61 6b 3b 0d 09 09 64 65 | 76 69 63 65 3d 47 65 74 |ak;...de|vice=Get|
|000004a0| 4e 65 78 74 44 65 76 69 | 63 65 28 64 65 76 69 63 |NextDevi|ce(devic|
|000004b0| 65 29 3b 0d 09 7d 0d 09 | 69 66 28 64 65 76 69 63 |e);..}..|if(devic|
|000004c0| 65 3d 3d 4e 55 4c 4c 29 | 7b 0d 09 09 50 72 69 6e |e==NULL)|{...Prin|
|000004d0| 74 66 45 78 69 74 28 22 | 53 6f 72 72 79 2c 20 74 |tfExit("|Sorry, t|
|000004e0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 6f 6e 6c 79 |his prog|ram only|
|000004f0| 20 77 6f 72 6b 73 20 77 | 69 74 68 20 74 68 65 20 | works w|ith the |
|00000500| 6f 72 69 67 69 6e 61 6c | 20 41 70 70 6c 65 20 4d |original| Apple M|
|00000510| 61 63 69 6e 74 6f 73 68 | 20 76 69 64 65 6f 20 63 |acintosh| video c|
|00000520| 61 72 64 73 3a 5c 6e 22 | 0d 09 09 09 22 d2 54 6f |ards:\n"|....".To|
|00000530| 62 79 20 66 72 61 6d 65 | 20 62 75 66 66 65 72 20 |by frame| buffer |
|00000540| 63 61 72 64 d3 20 61 6e | 64 20 d2 44 69 73 70 6c |card. an|d .Displ|
|00000550| 61 79 5f 56 69 64 65 6f | 5f 41 70 70 6c 65 5f 54 |ay_Video|_Apple_T|
|00000560| 46 42 d3 5c 6e 22 20 29 | 3b 0d 09 7d 0d 09 73 6c |FB.\n" )|;..}..sl|
|00000570| 6f 74 3d 47 65 74 44 65 | 76 69 63 65 53 6c 6f 74 |ot=GetDe|viceSlot|
|00000580| 28 64 65 76 69 63 65 29 | 3b 0d 0d 09 2f 2a 20 74 |(device)|;.../* t|
|00000590| 68 65 73 65 20 63 61 6c | 6c 73 20 61 72 65 20 6a |hese cal|ls are j|
|000005a0| 75 73 74 20 66 6f 72 20 | 66 75 6e 2c 20 74 6f 20 |ust for |fun, to |
|000005b0| 73 68 6f 77 20 74 68 61 | 74 20 74 68 65 20 63 61 |show tha|t the ca|
|000005c0| 6c 6c 73 20 64 6f 6e 27 | 74 20 63 72 61 73 68 20 |lls don'|t crash |
|000005d0| 2a 2f 0d 09 53 65 74 55 | 70 54 46 42 28 73 6c 6f |*/..SetU|pTFB(slo|
|000005e0| 74 29 3b 0d 09 0d 09 53 | 65 74 50 72 69 6f 72 69 |t);....S|etPriori|
|000005f0| 74 79 28 37 29 3b 09 2f | 2a 20 64 69 73 61 62 6c |ty(7);./|* disabl|
|00000600| 65 20 69 6e 74 65 72 72 | 75 70 74 20 66 6f 72 20 |e interr|upt for |
|00000610| 73 6d 6f 6f 74 68 20 73 | 63 72 6f 6c 6c 69 6e 67 |smooth s|crolling|
|00000620| 20 2a 2f 0d 0d 09 2f 2a | 20 64 65 6d 6f 6e 73 74 | */.../*| demonst|
|00000630| 72 61 74 65 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |rate hor|izontal |
|00000640| 70 61 6e 6e 69 6e 67 20 | 2a 2f 0d 09 79 3d 30 3b |panning |*/..y=0;|
|00000650| 0d 09 66 6f 72 28 78 3d | 30 3b 20 78 3c 3d 31 30 |..for(x=|0; x<=10|
|00000660| 32 38 3b 20 78 2b 3d 34 | 29 7b 0d 09 09 4e 65 77 |28; x+=4|){...New|
|00000670| 42 6c 61 6e 6b 69 6e 67 | 54 46 42 28 73 6c 6f 74 |Blanking|TFB(slot|
|00000680| 29 3b 0d 09 09 50 61 6e | 54 46 42 28 73 6c 6f 74 |);...Pan|TFB(slot|
|00000690| 2c 78 29 3b 0d 09 7d 0d | 09 53 63 72 6f 6c 6c 54 |,x);..}.|.ScrollT|
|000006a0| 46 42 28 73 6c 6f 74 2c | 62 69 74 73 2c 30 2c 30 |FB(slot,|bits,0,0|
|000006b0| 29 3b 0d 09 66 6f 72 28 | 78 3d 30 3b 78 3c 3d 32 |);..for(|x=0;x<=2|
|000006c0| 34 3b 78 2b 2b 29 4e 65 | 77 42 6c 61 6e 6b 69 6e |4;x++)Ne|wBlankin|
|000006d0| 67 54 46 42 28 73 6c 6f | 74 29 3b 0d 09 0d 09 2f |gTFB(slo|t);..../|
|000006e0| 2a 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 20 68 6f |* demons|trate ho|
|000006f0| 72 69 7a 6f 6e 74 61 6c | 20 61 6e 64 20 76 65 72 |rizontal| and ver|
|00000700| 74 69 63 61 6c 20 70 61 | 6e 6e 69 6e 67 20 2a 2f |tical pa|nning */|
|00000710| 0d 09 66 6f 72 28 79 3d | 30 2c 78 3d 30 3b 20 79 |..for(y=|0,x=0; y|
|00000720| 3c 3d 32 35 36 3b 20 78 | 2b 3d 34 2c 20 79 2b 2b |<=256; x|+=4, y++|
|00000730| 29 7b 0d 09 09 4e 65 77 | 42 6c 61 6e 6b 69 6e 67 |){...New|Blanking|
|00000740| 54 46 42 28 73 6c 6f 74 | 29 3b 0d 09 09 53 63 72 |TFB(slot|);...Scr|
|00000750| 6f 6c 6c 54 46 42 28 73 | 6c 6f 74 2c 62 69 74 73 |ollTFB(s|lot,bits|
|00000760| 2c 78 2c 79 29 3b 0d 09 | 7d 0d 0d 09 2f 2a 20 72 |,x,y);..|}.../* r|
|00000770| 65 73 74 6f 72 65 20 64 | 65 66 61 75 6c 74 20 76 |estore d|efault v|
|00000780| 61 6c 75 65 73 20 2a 2f | 0d 09 53 63 72 6f 6c 6c |alues */|..Scroll|
|00000790| 54 46 42 28 73 6c 6f 74 | 2c 62 69 74 73 2c 30 2c |TFB(slot|,bits,0,|
|000007a0| 30 29 3b 0d 0d 09 53 65 | 74 50 72 69 6f 72 69 74 |0);...Se|tPriorit|
|000007b0| 79 28 30 29 3b 09 2f 2a | 20 72 65 2d 65 6e 61 62 |y(0);./*| re-enab|
|000007c0| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 20 74 6f 20 |le inter|rupt to |
|000007d0| 75 6e 66 72 65 65 7a 65 | 20 6d 6f 75 73 65 20 2a |unfreeze| mouse *|
|000007e0| 2f 0d 7d 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |/.}.....|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 7a | 00 00 00 7a 00 00 00 46 |.......z|...z...F|
|00000810| 65 74 53 52 73 72 63 50 | 74 72 28 5f 5f 41 30 29 |etSRsrcP|tr(__A0)|
|00000820| 0d 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 53 47 |.pascal |OSErr SG|
|00000830| 0c 53 63 72 6f 6c 6c 44 | 65 6d 6f 2e 63 ec 02 00 |.ScrollD|emo.c...|
|00000840| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000850| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 ab bf ee 30 00 00 | 00 00 00 00 01 c0 65 6e |.....0..|......en|
|00000880| 64 69 66 0d 0d 23 65 6e | 64 69 66 0d d8 e0 93 a6 |dif..#en|dif.....|
|00000890| 90 bf 39 e3 e8 84 95 2b | 4a 8e 12 dd 6a 6a b7 89 |..9....+|J...jj..|
|000008a0| 79 70 95 e1 64 9b 90 3e | 3a f8 bb f7 6d 1c 9a 25 |yp..d..>|:...m..%|
|000008b0| 42 50 bd 43 cf 72 25 37 | 24 7e 9f 12 ef 09 12 dc |BP.C.r%7|$~......|
|000008c0| c4 94 e4 b0 c8 53 e0 13 | 09 a6 5a c2 9c 67 c4 23 |.....S..|..Z..g.#|
|000008d0| 20 23 4c 9c d2 ec 00 05 | 9c 58 fd 19 70 92 fb db | #L.....|.X..p...|
|000008e0| 17 35 e7 56 36 56 cc 27 | 75 fe 43 ef 80 a9 78 23 |.5.V6V.'|u.C...x#|
|000008f0| 62 b8 ae 56 f3 4d a1 80 | a7 6e f9 2c 5b 6f cf fc |b..V.M..|.n.,[o..|
|00000900| 00 00 00 0a 00 00 02 c9 | 00 14 00 00 00 00 00 00 |........|........|
|00000910| 00 68 00 04 00 10 00 00 | 02 c9 00 14 00 31 e1 3c |.h......|.....1.<|
|00000920| 00 00 01 61 00 1a 00 00 | 02 c9 00 14 00 31 e1 60 |...a....|.....1.`|
|00000930| 00 00 0b 26 61 5b 30 5d | 5b 30 5d 5b 31 5d 00 1a |...&a[0]|[0][1]..|
|00000940| 00 00 02 c9 00 14 00 31 | e1 28 00 00 0b 26 61 5b |.......1|.(...&a[|
|00000950| 31 5d 5b 30 5d 5b 30 5d | 00 22 00 00 02 c9 00 14 |1][0][0]|."......|
|00000960| 00 31 e0 fc 00 00 13 28 | 6c 6f 6e 67 29 26 61 5b |.1.....(|long)&a[|
|00000970| 31 5d 2d 28 6c 6f 6e 67 | 29 61 00 00 01 00 00 00 |1]-(long|)a......|
|00000980| 01 7a 00 00 00 7a 00 00 | 00 46 00 36 84 54 17 e0 |.z...z..|.F.6.T..|
|00000990| 00 00 00 1c 00 46 00 01 | 42 4b 50 54 00 00 00 12 |.....F..|BKPT....|
|000009a0| 44 54 56 55 00 00 00 1e | 14 86 ff ff 00 00 00 00 |DTVU....|........|
|000009b0| 00 00 00 00 0e fe ff ff | 00 00 00 0e 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+